package easier.fast.service.data;

import androidx.annotation.NonNull;

/**
 * 网络请求的响应模型
 */
public class CodeMsgData {

    /**
     * 响应参数结果
     */
    public int code;

    /**
     * 响应结果
     */
    public String data;

    /**
     * 响应消息
     */
    public String msg;

    public CodeMsgData() {

    }

    public CodeMsgData( int code, String msg ) {

        this.code = code;
        this.msg = msg;
    }

    public CodeMsgData( int code, String data, String msg ) {

        this.code = code;
        this.data = data;
        this.msg = msg;
    }

    @NonNull
    @Override
    public String toString() {

        return "CodeMsgData{" +
            "code='" + code + '\'' +
            ", data='" + data + '\'' +
            ", msg='" + msg + '\'' +
            '}';
    }
}
